package com.ssy.lingxi.order.model.vo.basic.request;

import com.ssy.lingxi.order.handler.annotation.FreightTypeAnnotation;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-07
 */
public class OrderSeparateProductVO implements Serializable {
    private static final long serialVersionUID = -5999428000830188545L;

    /**
     * 商品Id
     */
    @NotNull(message = "商品Id要大于0")
    @Positive(message = "商品Id要大于0")
    private Long productId;

    /**
     * 商品SkuId
     */
    @NotNull(message = "商品SkuId要大于0")
    @Positive(message = "商品SkuId要大于0")
    private Long skuId;

    /**
     * 商品运费方式，如无运费方式可为0或Null，1-卖家承担，2-买家承担
     */
    @FreightTypeAnnotation
    private Integer freightType;

    /**
     * 是否跨境商品
     */
    @NotNull(message = "是否跨境商品标记不能为空")
    private Boolean crossBorder;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Integer getFreightType() {
        return freightType;
    }

    public void setFreightType(Integer freightType) {
        this.freightType = freightType;
    }

    public Boolean getCrossBorder() {
        return crossBorder;
    }

    public void setCrossBorder(Boolean crossBorder) {
        this.crossBorder = crossBorder;
    }
}
